Skip to content

Validate WebSocket handshake keys - #105

Closed
OskarEichler wants to merge 1 commit into
faye:mainfrom
OskarEichler:audit/validate-handshake-key
Closed

Validate WebSocket handshake keys#105
OskarEichler wants to merge 1 commit into
faye:mainfrom
OskarEichler:audit/validate-handshake-key

Conversation

@OskarEichler

Copy link
Copy Markdown

Validate that Sec-WebSocket-Key is strict Base64 decoding to exactly 16 bytes before accepting a server handshake, matching RFC 6455 section 4.2.1. Malformed values currently receive a 101 response. The full 196-example suite passes on Ruby 4.0.6 and Ruby 3.2.11, as do the cumulative protocol model and native builds.

@OskarEichler

Copy link
Copy Markdown
Author

Closing this because the changes were produced with assistance from an LLM agent, which the Faye project does not accept. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant